import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  }, {
    /* 跳转到员工详情的地址 */
    path: '/employee/detail/:id?', //路由动态传参，使用：占位符+? 可选链
    component: () => import('@/views/employee/detail.vue'),
    hidden: true,//隐藏该
    meta: {
      title: '员工详情',
      icon: 'people'
    }
  }]
}
